using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.ComponentModel;
using EcsSiteDSTableAdapters;

namespace SiteECSWeb
{
    [DataObject]
    public class EcsInquiriesBLL
    {

        private InquiriesTableAdapter _InquiriesTableAdapter = null;

        protected InquiriesTableAdapter InquiriesTableAdapter
        {
            get
            {
                if (_InquiriesTableAdapter == null)
                {
                    _InquiriesTableAdapter = new InquiriesTableAdapter();
                }
                return _InquiriesTableAdapter;
            }
        }

        #region SelectInquires
        // Get All Ecs Inquiries Data //
        [DataObjectMethodAttribute(DataObjectMethodType.Select, true)]
        public EcsSiteDS.InquiriesDataTable GetALLInuiriesData()
        {
            return InquiriesTableAdapter.GetInquiriesRowRankData();

        }


        [DataObjectMethodAttribute(DataObjectMethodType.Select, true)]
        public EcsSiteDS.InquiriesDataTable GetALLInuiriesDataByInquirID(int InquirID)
        {
            return InquiriesTableAdapter.GetInquiriesDataByInquirId(InquirID);

        }

        #endregion
    }
}
